package com.hvisions.mapper;

import com.hvisions.entity.User;
import com.hvisions.util.MyMapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: Lau
 * @Description:
 * @Date: Created in 10:15 2019/10/24
 * @Modified By:
 */
public interface UserMapper extends MyMapper<User>{
   void updateLastLoginTime(User user);

    User selectByUsername(String username);

    List<User> selectUsers(User user);

    /**
     * 根据参数批量修改用户状态
     * @param params
     * @return int
     */
    int updateStatusBatch(Map<String, Object> params);

    int updateByUserId(User user);

 User selectByUserId(String userId);

 List<User> findByRoleId(String roleId);

 List<User> findByRoleIds(List<String> roleIds);
}
